/**
 * 
 */
package sqs.model;

import java.util.ArrayList;
import java.util.List;

/**
 * @author kjleng
 *
 */
public class NumericQuestion extends Question {
	private List<NumericQuestionAnswer> numericQuestionAnswers = new ArrayList<NumericQuestionAnswer>();

	public void addAnswer(Answer ans){
		numericQuestionAnswers.add((NumericQuestionAnswer)ans);
		answered = true;
	}
	
	public List<NumericQuestionAnswer> getNumericQuestionAnswers() {
		return numericQuestionAnswers;
	}

	public void setNumericQuestionAnswers(
			List<NumericQuestionAnswer> numericQuestionAnswers) {
		this.numericQuestionAnswers = numericQuestionAnswers;
	}
	public Answer createAnswer(){
		return new NumericQuestionAnswer();
	}
	
	public List<Option> getOptions(){
		//return a empty arrayList of options
		//numeric question has no option
		return new ArrayList<Option>();
	}
        
	public void setOptions(List options) {
		//do nothing, as this feature is not available to rating question
	}
	
	public Option createOption(){
		//do nothing, as this feature is not available to rating question
		return null;
	}
        
	public String getLayout(){
		return null;
	}
        
	public void setLayout(String layout){
		//do nothing, as this feature is not available to rating question
	}
        
	public Scale createScale(){
		return null;
	}
        
	public int getNumOfRespondents(){
		return numericQuestionAnswers.size();
	}
        
	public List getAnswers(){
		return numericQuestionAnswers;
	}

        // Added by Joko 18/01/2008
        public String getReportOrder() {
                return null;
        }
        
        // Added by Joko 18/01/2008
        public void setReportOrder(String reportOrder) {
                // do nothing
        }
}
